﻿@model EasyErp.ViewModel.GumSheetViewModel

@{
    ViewBag.Title = "GumSheet";
}

@using (Html.BeginForm())
{
    <p>
        @Html.LabelFor(model => model.Date)
        @Html.TextBoxFor(model => model.Date)
        @Html.LabelFor(model => model.EmployeeNo)
        @Html.TextBoxFor(model => model.EmployeeNo)
    </p>

    <p>
        @Html.LabelFor(model => model.OperationNo)
        @Html.TextBoxFor(model => model.OperationNo)
        @Html.LabelFor(model => model.Section)
        @Html.TextBoxFor(model => model.Section)
    </p>
    
    <input type="submit" value="Add Record" />
    
    <fieldset>
        <legend>Production & OffStandard Information</legend>
        <div id="left-panel">
            <table id="production-data">
                @for (int i = 0; i < 10; i++)
                {
                    <tr>
                        <td>
                            @Html.LabelFor(model => model.GumSheetProductionList[i].BundleId, "Bundle-" + (i + 1))
                            @Html.TextBoxFor(model => model.GumSheetProductionList[i].BundleId)
                        </td>
                        <td>
                            @Html.LabelFor(model => model.GumSheetProductionList[i+10].BundleId, "Bundle-" + (i + 11))
                            @Html.TextBoxFor(model => model.GumSheetProductionList[i+10].BundleId)
                        </td>
                        <td>
                            @Html.LabelFor(model => model.GumSheetProductionList[i+20].BundleId, "Bundle-" + (i + 21))
                            @Html.TextBoxFor(model => model.GumSheetProductionList[i+20].BundleId)
                        </td>
                    </tr>
            }
            </table>
        </div>
        <div id="right-panel">
            <table id="offstandard-data">
                @for (int i = 0; i < 10; i++)
                {
                    <tr>
                        <td>
                            @Html.LabelFor(model => model.GumSheetOffStandardList[i].NonStandCode, "Off Standard Code-" + (i + 1))
                            @Html.TextBoxFor(model => model.GumSheetOffStandardList[i].NonStandCode)
                        </td>
                        <td>
                            @Html.LabelFor(model => model.GumSheetOffStandardList[i].Duration, "Duration(Min)")
                            @Html.TextBoxFor(model => model.GumSheetOffStandardList[i].Duration)
                        </td>
                    </tr>
            }
            </table>
        </div>
    </fieldset>
}
<div class="clear"></div>